import request from "@/api/http";
import { FindFriendAllByIdRes } from "@/modules/friend/index";

/**
 * 获取用户好友列表
 * @param {number} page 起始页数
 * @param {number} pageSize 数据总量
 * @param {number} userid 用户id
 * @returns
 */
export function findFriendAllById(
  page: number,
  pageSize: number,
  userid: number
): Promise<FindFriendAllByIdRes> {
  return request.get(
    `/lris/Friend/allFriend?page=${page}&pageSize=${pageSize}&userid=${userid}`
  );
}
